Optimal. Leaf size=258 \[ -\frac{\text{PolyLog}\left (2,1-\frac{2 \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (-\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{PolyLog}\left (2,1-\frac{2 \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{2 \sqrt{b^2-4 a c}}+\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (-\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{\sqrt{b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.328003, antiderivative size = 258, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 7, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.467, Rules used = {618, 206, 6728, 5920, 2402, 2315, 2447} \[ -\frac{\text{PolyLog}\left (2,1-\frac{2 \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (-\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{PolyLog}\left (2,1-\frac{2 \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{2 \sqrt{b^2-4 a c}}+\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (-\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(x+1) \left (\sqrt{b^2-4 a c}+b+2 c\right )}\right )}{\sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 618
Rule 206
Rule 6728
Rule 5920
Rule 2402
Rule 2315
Rule 2447
Rubi steps
\begin{align*} \int \frac{\tanh ^{-1}(x)}{a+b x+c x^2} \, dx &=\int \left (\frac{2 c \tanh ^{-1}(x)}{\sqrt{b^2-4 a c} \left (b-\sqrt{b^2-4 a c}+2 c x\right )}-\frac{2 c \tanh ^{-1}(x)}{\sqrt{b^2-4 a c} \left (b+\sqrt{b^2-4 a c}+2 c x\right )}\right ) \, dx\\ &=\frac{(2 c) \int \frac{\tanh ^{-1}(x)}{b-\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}-\frac{(2 c) \int \frac{\tanh ^{-1}(x)}{b+\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}\\ &=\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c-\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c+\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\int \frac{\log \left (\frac{2 \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c-\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{1-x^2} \, dx}{\sqrt{b^2-4 a c}}+\frac{\int \frac{\log \left (\frac{2 \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c+\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{1-x^2} \, dx}{\sqrt{b^2-4 a c}}\\ &=\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c-\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\tanh ^{-1}(x) \log \left (\frac{2 \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c+\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\text{Li}_2\left (1-\frac{2 \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c-\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{Li}_2\left (1-\frac{2 \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (b+2 c+\sqrt{b^2-4 a c}\right ) (1+x)}\right )}{2 \sqrt{b^2-4 a c}}\\ \end{align*}
Mathematica [C] time = 18.6729, size = 874, normalized size = 3.39 \[ \frac{\frac{2 \sqrt{4 a c-b^2} \left (b \left (\sqrt{\frac{c (a+b+c)}{4 a c-b^2}} e^{i \tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right )}-\sqrt{\frac{c (a-b+c)}{4 a c-b^2}} e^{i \tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right )}\right )-2 c \left (e^{i \tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right )} \sqrt{\frac{c (a-b+c)}{4 a c-b^2}}+\sqrt{\frac{c (a+b+c)}{4 a c-b^2}} e^{i \tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right )}-1\right )\right ) \tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )^2}{b^2-4 c^2}+2 \left (-i \tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right )+i \tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right )+2 \tanh ^{-1}(x)+\log \left (1-e^{2 i \left (\tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )}\right )-\log \left (1-e^{2 i \left (\tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )}\right )\right ) \tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )+2 \left (\tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right ) \left (\log \left (1-e^{2 i \left (\tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )}\right )-\log \left (\sin \left (\tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )\right )\right )+\tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right ) \left (\log \left (\sin \left (\tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )\right )-\log \left (1-e^{2 i \left (\tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )}\right )\right )\right )-i \text{PolyLog}\left (2,e^{2 i \left (\tan ^{-1}\left (\frac{-b-2 c}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )}\right )+i \text{PolyLog}\left (2,e^{2 i \left (\tan ^{-1}\left (\frac{2 c-b}{\sqrt{4 a c-b^2}}\right )+\tan ^{-1}\left (\frac{b+2 c x}{\sqrt{4 a c-b^2}}\right )\right )}\right )}{2 \sqrt{4 a c-b^2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.337, size = 1599, normalized size = 6.2 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\operatorname{artanh}\left (x\right )}{c x^{2} + b x + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{atanh}{\left (x \right )}}{a + b x + c x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{artanh}\left (x\right )}{c x^{2} + b x + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]